/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class ImageUploadEntity {
    private final int height;
    @NotNull
    private final String imgUrl;
    private final int width;

    public ImageUploadEntity(int i2, int i3, @NotNull String imgUrl) {
        Intrinsics.checkNotNullParameter(imgUrl, "imgUrl");
        this.width = i2;
        this.height = i3;
        this.imgUrl = imgUrl;
    }

    public static /* synthetic */ ImageUploadEntity copy$default(ImageUploadEntity imageUploadEntity, int i2, int i3, String str, int i4, Object obj) {
        if ((i4 & 1) != 0) {
            i2 = imageUploadEntity.width;
        }
        if ((i4 & 2) != 0) {
            i3 = imageUploadEntity.height;
        }
        if ((i4 & 4) != 0) {
            str = imageUploadEntity.imgUrl;
        }
        return imageUploadEntity.copy(i2, i3, str);
    }

    public final int component1() {
        return this.width;
    }

    public final int component2() {
        return this.height;
    }

    @NotNull
    public final String component3() {
        return this.imgUrl;
    }

    @NotNull
    public final ImageUploadEntity copy(int i2, int i3, @NotNull String imgUrl) {
        Intrinsics.checkNotNullParameter(imgUrl, "imgUrl");
        return new ImageUploadEntity(i2, i3, imgUrl);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ImageUploadEntity)) {
            return false;
        }
        ImageUploadEntity imageUploadEntity = (ImageUploadEntity) obj;
        return this.width == imageUploadEntity.width && this.height == imageUploadEntity.height && Intrinsics.areEqual(this.imgUrl, imageUploadEntity.imgUrl);
    }

    public final int getHeight() {
        return this.height;
    }

    @NotNull
    public final String getImgUrl() {
        return this.imgUrl;
    }

    public final int getWidth() {
        return this.width;
    }

    public int hashCode() {
        return (((this.width * 31) + this.height) * 31) + this.imgUrl.hashCode();
    }

    @NotNull
    public String toString() {
        return "ImageUploadEntity(width=" + this.width + ", height=" + this.height + ", imgUrl=" + this.imgUrl + ')';
    }
}